package com.xx.chb01.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xx.chb01.web.entity.student.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Auther: chb
 * @Date: 2018/12/12 23:25
 * @Description:
 */
@Mapper
public interface  StudentMapper extends BaseMapper<Student> {

    @Update("update t_student set  `name`=#{name} where id=#{id}")
    int updateEntity(@Param("name") String name,@Param("id") long id);


}
